import request from '@/utils/request'

// 查询车辆导入主列表
export function listVehiclesImportBase(query) {
  return request({
    url: '/erecord/vehiclesImportBase/list',
    method: 'get',
    params: query
  })
}

// 查询车辆导入主详细
export function getVehiclesImportBase(batchNo) {
  return request({
    url: '/erecord/vehiclesImportBase/' + batchNo,
    method: 'get'
  })
}

// 新增车辆导入主
export function addVehiclesImportBase(data) {
  return request({
    url: '/erecord/vehiclesImportBase',
    method: 'post',
    data: data
  })
}

// 修改车辆导入主
export function updateVehiclesImportBase(data) {
  return request({
    url: '/erecord/vehiclesImportBase',
    method: 'put',
    data: data
  })
}

// 删除车辆导入主
export function delVehiclesImportBase(batchNo) {
  return request({
    url: '/erecord/vehiclesImportBase/' + batchNo,
    method: 'delete'
  })
}

export function importData(data) {
  return request({
    url: '/erecord/vehiclesImportBase/importData',
    method: 'post',
    data: data
  })
}